package io;


import java.io.Serializable;
import java.util.Arrays;

public class Student1 implements Serializable {

 private String name;
 private String gender;
 private int age;
 private transient String [] other;

    public Student1(String name, String gender, int age, String[] other) {
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.other = other;
    }

    Student1(){

}

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String[] getOther() {
        return other;
    }

    public void setOther(String[] other) {
        this.other = other;
    }

    @Override
    public String toString() {
        return "Student1{" +
                "name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", age=" + age +
                ", other=" + Arrays.toString(other) +
                '}';
    }
}
